# -*- coding: utf-8 -*-
#生成列表
print range(1, 11)
#[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

print [x * x for x in range(1, 11)]
#[1, 4, 9, 16, 25, 36, 49, 64, 81, 100]

print [x * (x + 1) for x in range(1, 100, 2)]
#[1x2, 3x4, 5x6, 7x8, ..., 99x100]